package com.example.pmanagesys.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 引用了lombok插件的注解@Data ，代替了Getter和Setter
// @NoArgsConstructor 无参数构造；
// @AllArgsConstructor 有参数构造
@NoArgsConstructor
@AllArgsConstructor
@Data

public class User {
    private Integer id;
    private String z_name;
    private String username;
//    @JsonIgnore //忽略某个字段，不展示给前端
    private String password;
    private String phone;
    private String address;
    private String joined_date;
    private String department;
    private String position;
    private String create_time;
    private String role;
    private String userState;
    private String update_time;
}
